﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ExcelTools
{
	/// <summary>
	/// Contains metadata about a column in a 
	/// <see cref="ExcelSheet"/>.
	/// </summary>
	public class ExcelColumn
	{
		#region Private Fields

		/// <summary>
		/// The data type of the column.
		/// </summary>
		private Type mDataType;

		/// <summary>
		/// The name of the column.
		/// </summary>
		private string mName;

		#endregion

		#region Public Properties

		/// <summary>
		/// Gets the data type of the column.
		/// </summary>
		public Type DataType
		{
			get { return mDataType; }
		}

		/// <summary>
		/// Gets the name of the column.
		/// </summary>
		public string Name
		{
			get
			{
				return mName;
			}
		}

		#endregion

		#region Public Constructors

		/// <summary>
		/// Instantiates a new column using the specified metadata.
		/// </summary>
		/// <param name="name"></param>
		/// <param name="dataType"></param>
		public ExcelColumn(string name, Type dataType)
		{
			mName = name;
			mDataType = dataType;
		}

		#endregion
	}
}
